package car.activities;




import car.manager.R;
import car.manager.R.id;
import car.manager.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class CarManagerActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        // We hook up 3 different buttons.
        Button b = (Button) findViewById(R.id.button_new_profile);
        b.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	startNewProfileForm();
            }
        });

        b = (Button) findViewById(R.id.button_load_profile);
        b.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	loadProfiles();
            }

			
            
           
        });

        b = (Button) findViewById(R.id.button_help);
        b.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
          //  	CarManagerActivity.this.startARViewWithCustomTitle();
            }
        });

     
    }

	protected void startNewProfileForm() {
		
		 Intent i = new Intent(this, NewProfileActivity.class);
	     startActivity(i);		
	}
	
	private void loadProfiles() {

		 Intent i = new Intent(this, ListOfUsersActivity.class);
	     startActivity(i);			
	}
    
}

